/**
 * handleType     处理类型 normal 正常的搜索条件 custom 自定义组件
 * title          标题
 * field          字段名
 * component      组件名
 * placeholder    提示语
 * width          宽度
 * size           尺寸
 * slotName       自定义组件插槽名
 * folding        是否折叠
 * options        下拉选项
 * clearable      是否可清除
 * type           输入框类型
 * multiple       是否多选
 * format         日期格式
 */

const searchItem = [
  {
    handleType: 'normal',
    field: 'date',
    component: 'vxe-input',
    placeholder: 'date',
    type: 'date',
    format: 'yyyy-MM-dd'
  },
  {
    field: 'type_key',
    component: 'vxe-select',
    placeholder: 'type',
    options: [
      {
        label: 'type1',
        value: '1'
      },
      {
        label: 'type2',
        value: '2'
      },
      {
        label: 'type3',
        value: '3'
      }
    ],
    multiple: true
  },
  {
    // 自定义组件
    handleType: 'custom',
    slotName: 'artcleName',
    field: 'artcle_name',
    placeholder: 'artcle_name',
    width: '170px',
    size: 'mini'
  },
  {
    // 自定义组件
    handleType: 'custom',
    slotName: 'numName',
    field: 'num_name',
    placeholder: 'num_name',
    width: '170px',
    size: 'mini'
  },
  {
    handleType: 'normal',
    field: 'supplier_trading_name_like',
    component: 'vxe-input',
    placeholder: 'supplier_tradingName'
  },
  {
    handleType: 'normal',
    field: 'supplier_name_like',
    component: 'vxe-input',
    placeholder: 'supplier_name'
  },
  {
    handleType: 'normal',
    field: 'abn_like',
    component: 'vxe-input',
    placeholder: 'abn'
  },
  {
    handleType: 'normal',
    field: 'supplier_code_like',
    component: 'vxe-input',
    placeholder: 'supplier_code'
  },
  {
    handleType: 'normal',
    field: 'phone_like',
    component: 'vxe-input',
    placeholder: 'phone'
  },
  {
    handleType: 'normal',
    field: 'email_address_like',
    component: 'vxe-input',
    placeholder: 'email_address'
  },
  {
    handleType: 'normal',
    field: 'category_like',

    component: 'vxe-input',
    placeholder: 'category'
  },

  {
    handleType: 'normal',
    field: 'a_like',
    component: 'vxe-input',
    placeholder: 'a'
  },
  {
    handleType: 'normal',
    field: 'b_like',
    component: 'vxe-input',
    placeholder: 'b'
  },
  {
    handleType: 'normal',
    field: 'c_like',
    component: 'vxe-input',
    placeholder: 'c',
    folding: true
  },
  {
    handleType: 'normal',
    field: 'd_like',
    component: 'vxe-input',
    placeholder: 'd',
    folding: true
  }
]

export default searchItem
